package com.example.demo.controller;


import com.example.demo.common.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yan
 * @since 2022-05-14
 */
@Api
@RestController
@Slf4j
@RequestMapping("/words")
public class WordsController {

    @ApiOperation("word测试")
    @PostMapping("/test")
    public R test(){
        Map<String,Long> map=new HashMap<>();
        map.put("1",111L);
        map.put("111",1111L);
        return R.success(map,"测试方法成功");
    }
}

